﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Dos.ORM;

namespace GongXianDCUI.Models
{ /// <summary>
    /// 实体类LunBoPic。(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Table("LunBoPic")]
    [Serializable]
    public partial class LunBoPic : Entity
    {
        #region Model
        private string _picId;
        private string _title;
        private string _picURL;
        private DateTime? _createTime;
        private string _atritcleURL;

        /// <summary>
        /// 
        /// </summary>
        [Field("picId")]
        public string picId
        {
            get { return _picId; }
            set
            {
                this.OnPropertyValueChange("picId");
                this._picId = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("title")]
        public string title
        {
            get { return _title; }
            set
            {
                this.OnPropertyValueChange("title");
                this._title = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("picURL")]
        public string picURL
        {
            get { return _picURL; }
            set
            {
                this.OnPropertyValueChange("picURL");
                this._picURL = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("createTime")]
        public DateTime? createTime
        {
            get { return _createTime; }
            set
            {
                this.OnPropertyValueChange("createTime");
                this._createTime = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("atritcleURL")]
        public string atritcleURL
        {
            get { return _atritcleURL; }
            set
            {
                this.OnPropertyValueChange("atritcleURL");
                this._atritcleURL = value;
            }
        }
        #endregion

        #region Method
        /// <summary>
        /// 获取实体中的主键列
        /// </summary>
        public override Field[] GetPrimaryKeyFields()
        {
            return new Field[] {
				_.picId,
			};
        }
        /// <summary>
        /// 获取列信息
        /// </summary>
        public override Field[] GetFields()
        {
            return new Field[] {
				_.picId,
				_.title,
				_.picURL,
				_.createTime,
				_.atritcleURL,
			};
        }
        /// <summary>
        /// 获取值信息
        /// </summary>
        public override object[] GetValues()
        {
            return new object[] {
				this._picId,
				this._title,
				this._picURL,
				this._createTime,
				this._atritcleURL,
			};
        }
        /// <summary>
        /// 是否是v1.10.5.6及以上版本实体。
        /// </summary>
        /// <returns></returns>
        public override bool V1_10_5_6_Plus()
        {
            return true;
        }
        #endregion

        #region _Field
        /// <summary>
        /// 字段信息
        /// </summary>
        public class _
        {
            /// <summary>
            /// * 
            /// </summary>
            public readonly static Field All = new Field("*", "LunBoPic");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field picId = new Field("picId", "LunBoPic", "");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field title = new Field("title", "LunBoPic", "");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field picURL = new Field("picURL", "LunBoPic", "");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field createTime = new Field("createTime", "LunBoPic", "");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field atritcleURL = new Field("atritcleURL", "LunBoPic", "");
        }
        #endregion
    }

}
